package com.lagou.edu.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value="lagou-service-email",fallback = EmailFallback.class,path = "/email")
public interface EmailFeignClient {

    @RequestMapping("/{email}/{code}")
    boolean sendMail(@PathVariable("email") String email, @PathVariable("code") String code);
}
